Telegram Group & Telegram Channel
Python dasturlash maktabi
⭕️ 2-bo'lim “Operatorlar” ————————————— Ⓜ️Operatorlar guruhlari? ----------------------------- Pythonda operatorlar quyidagi guruhga bo'linadi. Arifmetik operatorlar Tayinlash operatorlari Taqqoslash operatorlari Mantiqiy operatorlar Identifikatsiya operatorlari…
Ⓜ️ A'zolik operatorlari
A'zolik operatorlari ob'ektda ketma-ketlik mavjudligini tekshirish uchun ishlatiladi:

satr =  'salom dunyo 22'
list = ['salom dunyo', 'hello world', 22, '33']

in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('salom' in satr) True
print('salom' in list) False
print('salom dunyo' in list) True
print(22 in satr) Error
print(33 in list) False

not in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('hello' not in satr) True
print('salom' not in list) True
print('salom dunyo' not in list) False
print(22 not in list) False

@pythonuz



tg-me.com/pythonuz/307
Create:
Last Update:

Ⓜ️ A'zolik operatorlari
A'zolik operatorlari ob'ektda ketma-ketlik mavjudligini tekshirish uchun ishlatiladi:

satr =  'salom dunyo 22'
list = ['salom dunyo', 'hello world', 22, '33']

in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('salom' in satr) True
print('salom' in list) False
print('salom dunyo' in list) True
print(22 in satr) Error
print(33 in list) False

not in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('hello' not in satr) True
print('salom' not in list) True
print('salom dunyo' not in list) False
print(22 not in list) False

@pythonuz

BY Python dasturlash maktabi


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonuz/307

View MORE
Open in Telegram


Python dasturlash maktabi Telegram | DID YOU KNOW?

Date: |

Telegram Gives Up On Crypto Blockchain Project

Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”

For some time, Mr. Durov and a few dozen staffers had no fixed headquarters, but rather traveled the world, setting up shop in one city after another, he told the Journal in 2016. The company now has its operational base in Dubai, though it says it doesn’t keep servers there.Mr. Durov maintains a yearslong friendship from his VK days with actor and tech investor Jared Leto, with whom he shares an ascetic lifestyle that eschews meat and alcohol.

Python dasturlash maktabi from ms


Telegram Python dasturlash maktabi
FROM USA